package com.Trainer.FirstInterface;

import javax.swing.*;
import java.awt.*;

public class IndexBottomPanel extends JPanel {
    //属性
    JButton trainingBtn;
    JButton testBtn;

    //构造器
    public IndexBottomPanel(int x, int y, int weight, int height){
        trainingBtn = new JButton("练习");
        testBtn = new JButton("测验");

        //布局
        setBounds(x,y,weight,height);
        setLayout(null);
        add(trainingBtn);
        add(testBtn);
        trainingBtn.setBounds(350,50,200,100);
        testBtn.setBounds(350,200,200,100);
        trainingBtn.setFont(new Font("黑体",Font.PLAIN,26));
        testBtn.setFont(new Font("黑体",Font.PLAIN,26));
    }

    //方法
    public JButton getTestBtn() {
        return testBtn;
    }

    public JButton getTrainingBtn() {
        return trainingBtn;
    }
}

